#include<bits/stdc++.h>

using namespace std;

string add(string a, string b) {
    reverse(a.begin(), a.end());
    reverse(b.begin(), b.end());
    string c;


    if (a.size() < b.size())swap(a, b);
    b.resize(a.size());
    c.resize(a.size());
    int cs = 0;
    for (int i = 0; i < a.size(); i++) {
        int temp = a[i] - 48 + b[i] - 48 + cs;
        c[i] = static_cast<char>(temp % 10 + 48);
        cs = temp / 10;

    }
    if (cs > 0) {
        c.push_back(static_cast<char>(cs + '0'));
    }
    reverse(c.begin(), c.end());
    return c;
}
bool ok(string s){
    string t=s;
    reverse(t.begin(),t.end());
    return s==t;
}
int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    cout.tie(nullptr);
//    freopen("out.txt","r")
    for(int i=1;i<=2000;i++){
        cout<<"--------------------------"<<i<<endl;
        ostringstream oss;
        oss<<i;
        string a=oss.str();
        int cnt=0;

        while(!ok(a)){
            string b(a.rbegin(),a.rend());
            string c=add(a,b);
            cout<<a<<"+"<<b<<"="<<c<<endl;
            a=c;
            ++cnt;
            if(cnt>100)return -1;

        }
//        system("PAUSE");
    }


    return 0;
}
